package org.southyin.exception;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) throws ClassNotFoundException {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        AopTest1 aopTest1 = context.getBean("aopTest1", AopTest1.class);
        AopTest2 aopTest2 = context.getBean("aopTest2", AopTest2.class);
//        aopTest1.test1();
//        aopTest1.test2();
        aopTest2.test3();
        aopTest2.test4();
    }
}
